﻿using Autofac;
using King.Box.DbProvider.Impl;
using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Threading.Tasks;

namespace King.Box.DbProvider.Modules
{

    public class ProviderModule : Module
    {
        protected override void Load(ContainerBuilder builder)
        {
            builder.RegisterType<DbInitProvider>().As<IDbInitProvider>().SingleInstance();
            builder.RegisterType<SysUserDataProvider>().As<ISysUserDataProvider>().SingleInstance();
            builder.RegisterType<SysMenuDataProvider>().As<ISysMenuDataProvider>().SingleInstance();
        }
    }
}
